﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ZoneLine.Views
{
    /// <summary>
    /// AuthView.xaml 的交互逻辑
    /// </summary>
    public partial class AuthView : Window
    {
        public AuthView(Action act)
        {
            InitializeComponent();
            _act = act;
        }

        private Action _act;

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var pwd = Pwd.Password;

            if (pwd == "142536")
            {
                _act.Invoke();
                Close();
            }
            else
            {
                MessageBox.Show("密码不正确，请重新输入");
            }
        }
    }
}
